import http from "@/utils/http/index";

// 企业快捷回复
export function companyQuickReply(data) {
  return http({
    url: `/quickReplyClassification/companyQuickReply`,
    method: "get",
    params: data,
  });
}
// 企业快捷回复
export function personQuickReply(data) {
  return http({
    url: `/quickReplyClassification/userQuickReply`,
    method: "get",
    params: data,
  });
}
// 添加分类
export function createquickReplyClassification(data) {
  return http({
    url: `/quickReplyClassification/create`,
    method: "post",
    data: data,
  });
}
// 更新
export function updatequickReplyClassification(data) {
  return http({
    url: `/quickReplyClassification/update`,
    method: "post",
    data: data,
  });
}
// 删除
export function delquickReplyClassification(data) {
  return http({
    url: `/quickReplyClassification/delete/${data.id}`,
    method: "post",
    data: data,
  });
}
// 添加快捷回复
export function createQuestions(data) {
  return http({
    url: `/quickReply/create`,
    method: "post",
    data: data,
  });
}
// 修改快捷回复
export function updateQuestions(data) {
  return http({
    url: `/quickReply/update`,
    method: "post",
    data: data,
  });
}
// 删除快捷回复
export function delQuestions(data) {
  return http({
    url: `/quickReply/delete`,
    method: "post",
    data: data,
  });
}
